package com.ruoyi.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.sxftech.entity.BaseEntity;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单主表
 * </p>
 *
 * @author liuxing
 * @since 2020-10-28
 */
@Data
@TableName("biz_order")
public class BizOrder  {

    private static final long serialVersionUID = 1L;
    private String id;

    /**
     * 订单序列号
     */
    @TableField("order_sn")
    private String orderSn;

    /**
     * 订单类型
     */
    @TableField("order_type")
    private String orderType;

    /**
     * 订单描述
     */
    @TableField("order_desc")
    private String orderDesc;

    /**
     * 客户手机号
     */
    @TableField("mobile")
    private String mobile;

    /**
     * 订单预交金额
     */
    @TableField("pre_amount")
    private BigDecimal preAmount;

    /**
     * 线上支付的金额
     */
    @TableField("online_paid")
    private BigDecimal onlinePaid;

    /**
     * 线下支付的金额
     */
    @TableField("offline_paid")
    private BigDecimal offlinePaid;

    /**
     * 订单原付金额
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 订单实付金额
     */
    @TableField("actual_amount")
    private BigDecimal actualAmount;

    /**
     * 商户优惠金额
     */
    @TableField("merchant_discount__amount")
    private BigDecimal merchantDiscountAmount;

    /**
     * 平台优惠金额
     */
    @TableField("platform_discount_amount")
    private BigDecimal platformDiscountAmount;

    /**
     * 订单优惠金额
     */
    @TableField("discount_amount")
    private BigDecimal discountAmount;

    /**
     * 订单积分
     */
    @TableField("integral")
    private Integer integral;

    /**
     * 价格体系编码
     */
    @TableField("price_system_code")
    private String priceSystemCode;

    /**
     * 支付状态
     */
    @TableField("pay_status")
    private String payStatus;

    /**
     * 有效支付时间
     */
    @TableField("pay_expire_time")
    private Date payExpireTime;

    /**
     * 支付流水号
     */
    @TableField("pay_serial_number")
    private String paySerialNumber;

    /**
     * 预付时间
     */
    @TableField("pre_pay_time")
    private Date prePayTime;

    /**
     * 支付时间
     */
    @TableField("pay_time")
    private Date payTime;

    /**
     * 订单取消时间
     */
    @TableField("cancel_time")
    private Date cancelTime;

    /**
     * 订单状态
     */
    @TableField("order_status")
    private String orderStatus;

    /**
     * 发票状态
     */
    @TableField("invoice_status")
    private String invoiceStatus;

    /**
     * 预约支付序列号
     */
    @TableField("reserve_pay_sn")
    private String reservePaySn;

    /**
     * 物业提现渠道
     */
    @TableField("property_withdraw_channel")
    private String propertyWithdrawChannel;

    /**
     * 离场支付序列号
     */
    @TableField("leave_pay_sn")
    private String leavePaySn;

    /**
     * 公众号ID
     */
    @TableField("app_id")
    private Integer appId;

    /**
     * 支付公众号id(支付金额的公众号)
     */
    @TableField("pay_app_id")
    private Integer payAppId;

    /**
     * 提现渠道
     */
    @TableField("withdraw_channel")
    private String withdrawChannel;

    /**
     * 支付渠道
     */
    @TableField("pay_channel")
    private String payChannel;

    /**
     * Y:已清分，N：未清分
     */
    @TableField("clearing_status")
    private String clearingStatus;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField("modify_time")
    private Date modifyTime;


}
